import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadDemo2 {
    public static void main(String[] args) {
        ExecutorService pool = Executors.newFixedThreadPool(2);
        pool.submit(new Runnable() {
            @Override
            public void run() {
                while(true){
                    System.out.println("♥♥♥♥♥♥♥♥♥");
                }

            }
        });

        pool.submit(new Runnable() {
            @Override
            public void run() {
                while(true){
                    System.out.println("♥♥⭐♥♥");
                }

            }
        });
    }
}
